package com.china08.yxyapi.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwsStatisticsConfig {
    public final static String YW_SWS_ARTICLE_STATISTICS = "yxy.yw.sch.article.statistics";
    public final static String YW_SWS_ZIXUN_STATISTICS = "yxy.yw.sch.zixun.statistics";
    public final static String YW_SWS_LANMU_STATISTICS = "yxy.yw.sch.lanmu.cn.tongji.statistics";
    public final static String YW_SWS_HOMESCHOOLCLASS_STATISTICS = "yxy.yw.sch.homeschoolclass.statistics";
    public final static String YW_SWS_HOMESCHOOLCLASS_HUDONG_STATISTICS = "yxy.yw.sch.homeschoolclass.hudong.statistics";
    public final static String YW_SWS_HOMESCHOOLCLASS_RECIVE_STATISTICS = "yxy.yw.sch.homeschoolclass.recive.statistics";
    public final static String YW_SWS_HOMESCHOOLTEACHER_STATISTICS = "yxy.yw.sch.homeschoolteacher.statistics";
    public final static String YW_SWS_HOMESCHOOLTEACHER_HUDONG_STATISTICS = "yxy.yw.sch.homeschoolteacher.hudong.statistics";
    public final static String YW_SWS_HOMESCHOOLTEACHER_RECIVE_STATISTICS = "yxy.yw.sch.homeschoolteacher.recive.statistics";
    public final static String YW_SWS_HOMESCHOOLSCHOOL_HUDONG_STATISTICS = "yxy.yw.sch.homeschoolschool.hudong.statistics";
    // public final static String YW_SWS_HOMESCHOOLSCHOOL_RECIVE_STATISTICS =
    // "yxy.yw.sch.homeschool.recive.statistics.yyy";
    public final static String YW_SWS_HOMESCHOOLSCHOOL_STATISTICS = "yxy.yw.sch.homeschool.statistics";
    public final static String YW_SWS_HOMESCHOOLSCHOOL_SWSPV_STATISTICS = "yxy.yw.edu.homeschoolschool.swspv.statistics";
    public final static String YW_SWS_HOMESCHOOLLANMU_STATISTICS = "yxy.yw.sch.homeschoollanmu.statistics";
    public final static String YW_SWS_KAITONGWANGZHANTOTAL_STATISTICS = "yxy.yw.sch.kaitongwangzhantotal.statistics";
    public final static String YW_SWS_KAITONGWANGZHANMONTH_STATISTICS = "yxy.yw.kaitongwangzhanmonth.statistics";

    // 业务统计——家校统计
    public static final String YW_SWS_HOMESCHOOL_STATISTICS = "yxy.yw.sws.homeschool.statistics";

    // 业务统计——教学统计
    public static final String YW_SWS_TEACHING_STATISTICS = "yxy.yw.sws.teaching.statistics";
    // (学校)网站统计
    public static final String YW_SWS_SWS_STATISTICS = "yxy.yw.sws.sws.statistics";

    /**
     * 业务统计——网站统计MQ
     */
    @Bean
    Queue ywStatisticsSwsForDay() {
        return new Queue(YW_SWS_SWS_STATISTICS, true);
    }

    /**
     * @return 文章访问量每日统计mg
     */
    @Bean
    Queue ywStatisticsArticleForDay() {
        return new Queue(YW_SWS_ARTICLE_STATISTICS, true);
    }

    /**
     * @return 资讯数量每日统计mg
     */
    @Bean
    Queue ywStatisticsZixunForDay() {
        return new Queue(YW_SWS_ZIXUN_STATISTICS, true);
    }

    /**
     * @return 栏目数量每日统计mg
     */
    @Bean
    Queue ywStatisticsLanMuForDay() {
        return new Queue(YW_SWS_LANMU_STATISTICS, true);
    }

    /**
     * @return 家庭班级每日统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolClassForDay() {
        return new Queue(YW_SWS_HOMESCHOOLCLASS_STATISTICS, true);
    }

    /**
     * @return 家庭班级互动量前七天统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolClassHudongForDay() {
        return new Queue(YW_SWS_HOMESCHOOLCLASS_HUDONG_STATISTICS, true);
    }

    /**
     * @return 家庭学校互动量前七天统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolSchoolHudongForDay() {
        return new Queue(YW_SWS_HOMESCHOOLSCHOOL_HUDONG_STATISTICS, true);
    }

    /**
     * @return 家庭班级接收率前七天统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolClassReciveForDay() {
        return new Queue(YW_SWS_HOMESCHOOLCLASS_RECIVE_STATISTICS, true);
    }

    /**
     * @return 家庭学校接收率前七天统计mg
     */
    /*
     * @Bean Queue ywStatisticsHomeSchoolReciveForDay() { return new
     * Queue(YW_SWS_HOMESCHOOLSCHOOL_RECIVE_STATISTICS, true); }
     */

    /**
     * @return 学校老师的数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolteacherForDay() {
        return new Queue(YW_SWS_HOMESCHOOLTEACHER_STATISTICS, true);
    }

    /**
     * @return 学校老师前七天的互动数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolteacherHuDongForDay() {
        return new Queue(YW_SWS_HOMESCHOOLTEACHER_HUDONG_STATISTICS, true);
    }

    /**
     * @return 学校老师前七天的接收率数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolteacherReciveForDay() {
        return new Queue(YW_SWS_HOMESCHOOLTEACHER_RECIVE_STATISTICS, true);
    }

    /**
     * @return 学校家校通知数量和班级圈发布数量数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolForDay() {
        return new Queue(YW_SWS_HOMESCHOOLSCHOOL_STATISTICS, true);
    }

    /**
     * @return 补全学校swspv数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolSwsPvForDay() {
        return new Queue(YW_SWS_HOMESCHOOLSCHOOL_SWSPV_STATISTICS, true);
    }

    /**
     * @return 补全学校swspv数据统计mg
     */
    @Bean
    Queue ywStatisticsHomeSchoolLanMuSwsPvForDay() {
        return new Queue(YW_SWS_HOMESCHOOLLANMU_STATISTICS, true);
    }

    /**
     * 业务统计——家校统计MQ
     */
    @Bean
    Queue ywStatisticsHomeschoolForDay() {
        return new Queue(YW_SWS_HOMESCHOOL_STATISTICS, true);
    }

    /**
     * 业务统计——教学统计MQ
     */
    @Bean
    Queue ywStatisticsTeachingForDay() {
        return new Queue(YW_SWS_TEACHING_STATISTICS, true);
    }

    /**
     * @return 补全学校开通网站数据统计mg(total)
     */
    @Bean
    Queue ywKaiTongSchoolTotal() {
        return new Queue(YW_SWS_KAITONGWANGZHANTOTAL_STATISTICS, true);
    }

    /**
     * @return 补全学校开通网站数据统计mg(total)
     */
    @Bean
    Queue ywKaiTongSchoolMonth() {
        return new Queue(YW_SWS_KAITONGWANGZHANMONTH_STATISTICS, true);
    }
}
